﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using CID.Tests.Support.Configuration.Database;

namespace CID.Tests.Support.Configuration
{
    public static class TestsConfiguration
    {
        public const string DatabaseConnectionStringKey = "CID";
        private const string DatabaseInitializationConfigurationSection = "databaseInitializationConfiguration";

        public static string DatabaseConnectionString { get; private set; }
        public static InitializationConfiguration DatabaseInitializationConfiguration { get; private set; }

        static TestsConfiguration()
        {
            DatabaseConnectionString = ConfigurationManager.ConnectionStrings[DatabaseConnectionStringKey].ConnectionString;
            DatabaseInitializationConfiguration = (InitializationConfiguration)ConfigurationManager.GetSection(DatabaseInitializationConfigurationSection);
        }
    }
}
